package com.tpyg.wallet.account.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.tpyg.wallet.account.dao.ChatUserMapper;
import com.tpyg.wallet.account.entity.ChatUser;
import com.tpyg.wallet.account.service.ChatUserService;
import com.tpyg.wallet.common.dao.IMybatisDao;
import com.tpyg.wallet.common.service.impl.MybatisServiceImpl;

@Service("chatUserService")
public class ChatUserServiceImpl extends MybatisServiceImpl<ChatUser, Long> implements ChatUserService{

	@Resource
	private ChatUserMapper chatUserMapper;
	
	@Override
	public int deleteByPrimaryKey(Long id) {
		return chatUserMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ChatUser record) {
		return chatUserMapper.insert(record);
	}

	@Override
	public int insertSelective(ChatUser record) {
		return chatUserMapper.insertSelective(record);
	}

	@Override
	public ChatUser selectByPrimaryKey(Long id) {
		return chatUserMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ChatUser record) {
		return chatUserMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ChatUser record) {
		return chatUserMapper.updateByPrimaryKey(record);
	}

	@Override
	public ChatUser selectByUsername(String username) {
		return chatUserMapper.selectByUsername(username);
	}

	@Override
	protected IMybatisDao<ChatUser, Long> getBaseDao() {
		return chatUserMapper;
	}

}
